<template>
	<div class="user-info">
		<div>
			<label>{{ $t('route.base') }}</label>
			<div></div>
			<button><img /><label>{{ $t('route.USER') }}</label></button>
		</div>
		<div>
			<el-form>
				<el-form-item :label="$t('route.head_portrait')" label-width="150px">
					<el-upload accept="image/*" :action="uploadUrl" :show-file-list="false" :on-success="uploadSuccess">
						<el-image style='height: 120px;width: 120px;'
    :src="form.imgUrl!=null?form.imgUrl:require('../../assets/img/avatar.png')" />
					</el-upload>
				</el-form-item>
				<el-form-item :label="$t('route.cell_phone_number')" label-width="150px">
					<el-input v-model="form.name" style="width: 300px;"></el-input>
				</el-form-item>
				<el-form-item :label="$t('route.Company_name')" label-width="150px">
					<el-input v-model="form.name" style="width: 300px;"></el-input>
				</el-form-item>
				<el-form-item :label="$t('route.address')" label-width="150px">
					<el-input v-model="form.name" style="width: 300px;"></el-input>
				</el-form-item>
				<el-form-item label-width="150px">
					<el-button type="primary" @click="saveClick">{{ $t('route.preservation') }}</el-button>
				</el-form-item>
			</el-form>
		</div>

	</div>
</template>

<script>
	import http from "../../js/http/http.js";
	import api from "../../js/http/api.js";
	import CommonUtils from "../../js/common/common-utils.js";
	export default {
		data() {
			return {
				form: {

				}
			};
		},
		methods: {

		},
		created() {}
	};
</script>
<style lang="scss" scoped>
	.user-info {
		color: #444444;
		font-size: 18px;
		padding-right: 20px;
		height: calc(100vh - 100px);
		// overflow: scroll;
		scrollbar-width: none;
		/* firefox */
		-ms-overflow-style: none;
		/* IE 10+ */
		overflow-x: hidden;
		overflow-y: auto;

		>div {
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-top: 20px;
			background-color: #ffffff;
			padding: 20px;
			border-radius: 5px;
		}

		>div:nth-of-type(1) {


			>label:nth-of-type(1) {
				font-weight: 600;
			}

			>div:nth-of-type(1) {
				width: 1px;
				background-color: #cccccc;
				height: 15px;
				margin: 0px 20px;
			}

			>button:nth-of-type(1) {
				background-image: url(../../assets/img/customer-1.png);
				background-repeat: no-repeat;
				background-size: 100% 100%;
				padding: 5px 10px;
				border: 0px;
				display: flex;
				color: #ffffff;
				flex-direction: row;
				align-items: center;
				font-weight: 800;

				>img {
					margin-right: 7px;
					width: 15px;
					height: 15px;
					content: url(../../assets/img/customer-2.png);
				}

			}
		}
	}
</style>
